import { defHttp } from "@/utils/http";

// ERP 药品附属信息API
export const VdrugAttachmentsApi = {
	// 获得药品附属信息分页
	VdrugAttachmentsList: async (params: any) => {
		return await defHttp.get({ url: `/whs/Vdrug-attachments/page`, params });
	},
	// 新增药品附属信息
	VdrugAttachmentsCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/Vdrug-attachments/create`, data });
	},

	// 修改药品附属信息
	VdrugAttachmentsUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/Vdrug-attachments/update`, data });
	},

	// 删除药品附属信息
	VdrugAttachmentsDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/Vdrug-attachments/delete?id=` + id });
	}
};
